import request from '../request.js'
import {
  API, APPAPI
} from '../const';

// 搜索商品
export function apiSearchProducts(data) {
  return request({
    url: `${APPAPI}/product`,
    method: 'post',
    data,
  })
}

// 获得商品列表
export function apiGetProductsList(data) {
  return request({
    url: `${API}/product/list/${data.shop_id}`,
  })
}